﻿/**
 * \file Fer.cs
 * \brief decorateur fer
 * */
namespace Implementation
{
	using interfaces;
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Text;
    [SerializableAttribute()]
	public class Fer : DecorateurResource
	{
		private int minerai;

        private Case caze { get; set; }

		public virtual int getMinerai()
		{
            return caze.getMinerai() + minerai;
		}

		public virtual int getNouriture()
		{
            return caze.getNouriture();
		}

        public virtual string getType()
        {
            return "fer";
        }

        public virtual Case getCase()
        {
            return caze;
        }

		public Fer(Case c)
		{
            caze = c;
            minerai = 2;
		}

	}
}

